package yxy.game.pm2;

public class Result {

	// 常规
	static public Result Success = new Result(0);// 成功
	static public Result ParamError = new Result(1001);// 参数错误
	static public Result DataError = new Result(1002);// 数据错误

	// 消费
	static public Result CostFail = new Result(2001);// 消费不足

	// 商店
	static public Result ShopSellOut = new Result(3001);// 商品已经卖光了
	static public Result ShopCannotRefresh = new Result(3002);// 商店不能刷新
	static public Result ShopSellLimitOut = new Result(3003);// 购买数量超出限购额

	// 活动
	static public Result ActNoOpen = new Result(6001);// 未开启
	static public Result ActHadGet = new Result(6002);// 已经领取
	static public Result ActCannotGet = new Result(6003);// 不能领取
	static public Result Actgetover = new Result(6004);// 领完了
	static public Result ActNoRedeemCode = new Result(6211);// 兑换码不存在
	static public Result ActInvalid = new Result(6212);// 已失效
	static public Result ActHadSelect = new Result(6005);// 已经锁定
	static public Result ActNOUnlock = new Result(6006);// 未解锁
	static public Result ActNOFinish = new Result(6007);// 未完成
	static public Result ActNOSelect = new Result(6008);// 未选择
	static public Result ActSelectMax = new Result(6009);// 选择次数达到上线

	// 支付
	static public Result PayNoGoods = new Result(6201);// 商品不存在
	static public Result PayHadGetGoods = new Result(6202);// 商品限购，不能购买
	static public Result PayFail = new Result(6203);// 购买失败
	static public Result PaySucess = new Result(6206);// 购买成功
	static public Result PayOrderInfoFinish = new Result(6207);// 订单已经完成
	static public Result PayNullOrderInfo = new Result(6208);// 订单不存在
	static public Result PayNotfinishOrderNull = new Result(6209);// 没有未完成订单
	static public Result PayCannotBuy = new Result(6210);// 不能购买
	static public Result PayOrderInfoFail = new Result(6213);// 订单失败
	static public Result PayNoActtype = new Result(6220);// 没有这个活动类型

	// Vip
	static public Result NoViplv = new Result(6501);// vip等级不够

	// 膜拜
	static public Result WorshipTimesOut = new Result(6601);// 今日的膜拜次数已用完
	static public Result WorshipLow = new Result(6602);// 不能膜拜排名过低的主公
	static public Result WorshipSelf = new Result(6603);// 不能膜拜自己哦
	static public Result WorshipDone = new Result(6604);// 已经膜拜过这位主公

	// 战斗通用
	static public Result BattleRecordExpired = new Result(8001);// 录像已经过期了
	static public Result BattleIsRunning = new Result(8002);// 还有正在进行中的战斗
	static public Result BattleHasSettled = new Result(8003);// 战斗已结算
	static public Result BattleIsNotFinished = new Result(8004);// 战斗尚未结束
	static public Result BattlePuzzleVerifyFail = new Result(8005);// 三消验证未通过
	static public Result BattleSkipVip = new Result(8006);// VIP等级不够，不能跳过战斗

	// 模块
	static public Result ModuleNotOpen = new Result(9001);// 模块尚未开启

	// 任务通用
	static public Result TaskCantReward = new Result(4001);// 任务奖励不能领取

	// 武将
	static public Result HeroCountUpper = new Result(20001);// 武将背包空余位置不足
	static public Result HeroNotExists = new Result(20002);// 武将不存在
	static public Result HeroLevelUpper = new Result(20003);// 武将等级已满
	static public Result HeroLevelLack = new Result(20004);// 武将等级不够
	static public Result HeroStageUpper = new Result(20005);// 武将升阶已满
	static public Result HeroStarCantSelf = new Result(20006);// 升星不能消耗武将自己
	static public Result HeroStarUpper = new Result(20007);// 武将星级已满
	static public Result HeroStarFail = new Result(20008);// 武将升星失败
	static public Result HeroPackUpper = new Result(20009);// 购买次数已达上限
	static public Result HeroRebirthUpper = new Result(20010);// 今天的武将重生次数已达上限
	static public Result HeroStageFail = new Result(20011); // 武将升阶失败
	static public Result HeroTransferFailLevel = new Result(20012); // 目标武将必须是1级
	static public Result HeroTransferFailAptitude = new Result(20013); // 只能转移到同资质或者更高资质的武将

	// 布阵
	static public Result FormatLessHero = new Result(30001);// 请至少上阵一名武将
	static public Result FormatSameHero = new Result(30002);// 不能上阵同样的武将
	static public Result FormatNiubeeError = new Result(30003);// 神器设置错误

	// 装备
	static public Result EquipFusionFail = new Result(50001);// 合成失败
	static public Result EquipNotExisted = new Result(50002);// 背包里没有这个装备

	// 征战
	static public Result ConquestBonusRewarded = new Result(70001);// 通关奖励已经领过
	static public Result ConquestBonusForbid = new Result(70002);// 通关奖励不能领取
	static public Result ConquestIdleTimeTooClosed = new Result(70003);// 领取挂机奖励时间太短了
	static public Result ConquestRewardUpper = new Result(70004);// 情报值会超上限
	static public Result ConquestSweepNoTimes = new Result(70005);// 扫荡没有次数了

	// 日常任务
	static public Result DailyTaskBoxRewarded = new Result(80001);// 奖励已领过
	static public Result DailyTaskBoxCantReward = new Result(80002);// 奖励不能领取

	// 日常副本
	static public Result DungeonCantChanllenge = new Result(90001);// 关卡尚不能挑战
	static public Result DungeonChanllengeLowLevel = new Result(90002);// 主公等级不够
	static public Result DungeonChanllengeLowPower = new Result(90003);// 主公战力不足
	static public Result DungeonCantSweep = new Result(90004);// 关卡不能扫荡
	static public Result DungeonNoStageCanSweep = new Result(90005);// 没有可扫荡的关卡
	static public Result DungeonSweepTimesLack = new Result(90006);// 扫荡次数不足
	static public Result DungeonChanllengeLowMap= new Result(90007);// 主公尚未达到征战等级



	// 剿匪
	static public Result BanditTaskCantReceive = new Result(100001);// 剿匪任务领取不了
	static public Result BanditTaskDeliverFail = new Result(100002);// 任务派遣失败
	static public Result BanditHeroNotFit = new Result(100003);// 派遣武将条件不符
	static public Result BanditTaskSpeedUpFail = new Result(100004);// 任务加速失败
	static public Result BanditTaskNoGet = new Result(100005);// 没有可领取奖励的任务

	// 竞技场
	static public Result ArenaTargetNotOppo = new Result(110001);// 目标对手不在你的对手列表中
	static public Result ArenaBoxRewarded = new Result(110002);// 宝箱已领过
	static public Result ArenaTimesLack = new Result(110003);// 挑战次数不足

	// 祭坛
	static public Result AltarChipLack = new Result(120001);// 献祭的碎片数量不足
	static public Result AltarHeroForbid = new Result(120002);// 选择的武将不能献祭

	// 好友
	static public Result FriendCantAddBlack = new Result(160001);// 黑名单玩家不能添加为好友
	static public Result FriendIsFullOppo = new Result(160002);// 对方好友名额已经满了
	static public Result FriendIsFullYou = new Result(160003);// 你的好友名额已经满了
	static public Result FriendPointNoTimes = new Result(160004);// 你今天的赠送次数已达上限
	static public Result FriendPointCantGiven = new Result(160005);// 这个玩家不能赠送
	static public Result FriendPointHasGiven = new Result(160006);// 这个玩家已经赠送过了
	static public Result FriendPointHasReceive = new Result(160007);// 你已经领取过了
	static public Result FriendCantAddSelf = new Result(160008);// 不能添加自己为好友

	// 过关斩将
	static public Result FortDefeatBoxRewarded = new Result(170001);// 宝箱已经领过
	static public Result FortDefeatBoxCantReward = new Result(170002);// 宝箱不能领取
	static public Result FortDefeatDifficultError = new Result(170003);// 关卡难度错误
	static public Result FortDefeatStageError = new Result(170004);// 关卡Id错误
	static public Result FortDefeatDifficultCantSelect = new Result(170005);// 这个难度还不能挑战，请先完成上一个难度
	static public Result FortDefeatNoStageCanSweep = new Result(170006);// 没有可以扫荡的关卡
	static public Result FortDefeatLowPower = new Result(170007);// 你的战力不够，还不能挑战此难度

	// 战神殿
	static public Result GodWarArenaRankNotFit = new Result(180001);// 你的竞技场排名不具备挑战资格
	static public Result GodWarCoolDown = new Result(180002);// 挑战冷却中

	// 邮件
	static public Result MailExpired = new Result(460001);// 邮件已过期
	static public Result MailRewared = new Result(460002);// 邮件奖励已领取
	static public Result MailNoRewared = new Result(460003);// 邮件没有奖励
	static public Result MailNumMax = new Result(460004);// 邮件背包达上限

	// 聊天
	static public Result ChatTextNotStandard = new Result(480001);// 文字内容不太合适
	static public Result ChatTextLengthTooLong = new Result(480002);// 文字字数过多
	static public Result ChatWorldChannelLevelLow = new Result(480003);// 等级不够
	static public Result ChatBanned = new Result(480004);// 您已被禁言，请联系客服
	static public Result ChatSendFast = new Result(480005);// 您语速太快了，请慢一点
	static public Result ChatClosed = new Result(480006);// 聊天频道关闭中
	static public Result ChatSendFrequent = new Result(480007); //发送太频繁

	// 神器
	static public Result NiubeeSkillUpper = new Result(60001);// 神器技能已经升满
	static public Result NiubeeRefineUpper = new Result(60002);// 神器精炼已经满级
	static public Result NiubeeSoulUpper = new Result(60003);// 神器铸魂已经升满
	static public Result NiubeeNeedActiveAll = new Result(60004);// 神器需要全部激活才能升级
	static public Result NiubeeLevelUpper = new Result(60005);// 神器已经达到最高级

	// 背包
	static public Result CoinTimesLack = new Result(40001);// 没有兑换次数了
	static public Result PackItemNumberLack = new Result(40002);// 物品数量不足

	// 玩家
	static public Result PlayerAvatarNotGet = new Result(10001);// 形象未获得
	static public Result PlayerHeadNotGet = new Result(10002);// 头像未获得
	static public Result PlayerHeadframeNotGet = new Result(10003);// 头像框未获得
	static public Result PlayerTitleNotGet = new Result(10004);// 称号未获得
	static public Result PlayerNotExist = new Result(10005);// 玩家不存在
	static public Result PlayerNameNotStandard = new Result(10006);// 名字不合适
	static public Result PlayerNameLengthTooLong = new Result(10007);// 名字过长
	static public Result PlayerNameUsed = new Result(10008);// 名字已经被使用
	static public Result PropertyMoreThanLimit = new Result(10009); //单项属性加成超过最低项 5%

	// 魂玉
	static public Result SoulChangeLowLevel = new Result(23001);// 武将等级不足
	static public Result SoulChangeLowStar = new Result(23002);// 武将星级不足

	// 兵法
	static public Result StrategyInPosition = new Result(22001);// 这个位置上已经有兵法
	static public Result StrategyLearnLowStar = new Result(22002);// 武将星级不足
	static public Result StrategyNotPosition = new Result(22003);// 这个位置没有兵法

	// 修炼塔
	static public Result TowerBonusRewarded = new Result(130001);// 这个奖励已经领过
	static public Result TowerChanllengeTimesLack = new Result(130002);// 没有挑战次数了
	static public Result TowerChanllengeFloor = new Result(130003);// 你还不能挑战这层
	static public Result TowerBuyTimesLack = new Result(130004);// 已经没有购买次数了
	static public Result TowerCantSweepFloor = new Result(130005);// 这层还没有挑战成功，不能扫荡
	static public Result TowerPowerOverPlayerPower = new Result(130006);// 玩家战力没远超塔的战力，不能跳过

	//夷陵之战
	static public Result YiLingBattleBonusRewarded = new Result(190001);// 这个奖励已经领过
	static public Result YiLingBattleBonusCantRewarded = new Result(190002);// 不能领取该奖励
	static public Result YiLingBattleChanllengeTimesLack = new Result(190003);// 没有挑战次数了
	static public Result YiLingBattleBuyTimesLack = new Result(190004);// 已经没有购买次数了
	static public Result YiLingBattleCantSweepFloor = new Result(190005);// 这层还没有挑战成功，不能扫荡
	static public Result YiLingBattleCanChallenge = new Result(190006); //今日挑战次数达到上限

	//神兽
	static public Result GodBeastIsActivated = new Result(250001);//神兽已激活
	static public Result GodBeastLevelUpper = new Result(250002); //神兽等级达到上限
	static public Result GodBeastSkillLevelUpper = new Result(250003); //技能等级达到上限
	static public Result GodBeastLevelLower = new Result(250004); //神兽等级不够
	static public Result TherionBattleNoChallenge = new Result(250005); //无法挑战该玩家，10秒后重试
	static public Result HadTherionOnFormat = new Result(250006); //已有神兽上阵
	static public Result NotChallengeMyself = new Result(250007); //无法挑战自己
	static public Result ChallebgeNumNotEnough = new Result(250008); //挑战次数不足
	static public Result SelectConsumeEquips = new Result(250009); //请选择消耗的装备
	static public Result TherionPositionLevelUpper = new Result(250010); //神兽部位等级达到上限
	static public Result TherionIsReviving = new Result(250011); //神兽复活中



	// 联盟基本
	static public Result UnionOut = new Result(290001);// 玩家没有联盟
	static public Result UnionIn = new Result(290002);// 玩家已有联盟
	static public Result UnionFull = new Result(290003);// 联盟已满员
	static public Result UnionLeader = new Result(290004);// 你是盟主
	static public Result UnionNotLeader = new Result(290005);// 你不是盟主
	static public Result UnionNotManager = new Result(290006);// 你没有管理权限
	static public Result UnionCantQuit = new Result(290007);// 你不能退出联盟
	static public Result UnionManager = new Result(290008);// 你有管理权限

	// 联盟加入
	static public Result UnionJoinForbid = new Result(200001);// 你退出上一个联盟的冷静期还没有结束
	static public Result UnionIsDissolved = new Result(200002);// 联盟已经解散了
	static public Result UnionJoinLowLevel = new Result(200003);// 你的等级不够
	static public Result UnionJoinLowPower = new Result(200004);// 你的战力不够

	// 联盟Boss
	static public Result UnionBossTimesLack = new Result(230001);// 你的挑战次数用完了
	static public Result UnionBossBuyTimesLack = new Result(230002);// 你的购买次数用完了

	// 联盟捐献
	static public Result UnionContribDone = new Result(210001);// 你今天已经捐献过了
	static public Result UnionContribBonusLowScore = new Result(210002);// 捐献积分还不够
	static public Result UnionContribBonusRewarded = new Result(210003);// 你已经领过这个奖励

	// 联盟管理
	static public Result UnionTargetNotMember = new Result(280001);// 这个人不是联盟成员
	static public Result UnionApplierIsIn = new Result(280002);// 申请者已经有联盟了
	static public Result UnionNameNotStandard = new Result(280003);// 名字不太合适
	static public Result UnionNameLengthTooLong = new Result(280004);// 名字太长了
	static public Result UnionNameUsed = new Result(280005);// 名字已经被使用
	static public Result UnionSloganNotStandard = new Result(280006);// 文字不符合规范
	static public Result UnionNoticeNotStandard = new Result(280007);// 文字不符合规范
	static public Result UnionViceCantExpel = new Result(280008);// 副会长不能被踢
	static public Result UnionViceUpper = new Result(280009);// 副会长名额已满

	// 联盟科技
	static public Result UnionTechlevelUpper = new Result(220001);// 科技等级已经升满

	// 联盟战
	static public Result UnionWarNotIn = new Result(240001);// 你的联盟没有参战
	static public Result UnionWarSettled = new Result(240002);// 联盟战已经结束
	static public Result UnionWarTimesOut = new Result(240003);// 你已经没有挑战次数
	static public Result UnionWarStarOut = new Result(240004);// 这个难度已经不能挑战
	static public Result UnionWarBoxForbid = new Result(240005);// 你没有领取宝箱的资格
	static public Result UnionWarBoxHasReward = new Result(240006);// 你已经领取过宝箱奖励
	static public Result UnionWarBoxHasGet = new Result(240007);// 这个宝箱已经被领走了

	// 置换神殿
	static public Result TempleHeroCantRestore = new Result(140001);// 武将不能回退
	static public Result TempleHeroCantChange = new Result(140002);// 武将不能置换
	static public Result TempleHeroCantExpendSelf = new Result(140003);// 武将不能消耗自己
	static public Result TempleHeroCantChangeSame = new Result(140004);// 武将不能置换成相同武将
	static public Result TempleHeroExpendSame = new Result(140005);// 置换消耗的武将应是同一个
	static public Result TempleHeroExpendNumber = new Result(140006);// 置换消耗的武将数量不符
	static public Result TempleHeroCantBack = new Result(140007);// 武将不能回退
    static public Result TempleHeroCantSelectFormatHero = new Result(140008);// 不能置换场上的武将

	// 神将试炼
	static public Result InfiniteBoxHasRewarded = new Result(150001);// 宝箱奖励已经领过
	static public Result InfiniteBoxHasNotRewarded = new Result(150002);//宝箱奖励不能领取

	// 天梯
	static public Result StairwayNotOpen = new Result(260001);// 天梯争雄活动未开启
	static public Result StairwayArenaRankNotFit = new Result(260002);// 竞技场排名不足
	static public Result StairwayCantChanllenge = new Result(260003);// 不能挑战这个位置的玩家
	static public Result StairwayTimesOut = new Result(260004);// 没有挑战次数了

	// 七擒孟获
	static public Result WorldBossNotOpen = new Result(270001);// 这个活动尚未开启
	static public Result WorldBossWorldLevel = new Result(270002);// 世界等级不足，活动没有开启
	static public Result WorldBossTimesLack = new Result(270003);// 你的挑战次数用完了
	static public Result WorldBossBuyTimesLack = new Result(270004);// 你的购买次数用完了

	// 乌巢
	static public Result WuchaoNotStart = new Result(300001);// 乌巢挑战尚未开始
	static public Result WuchaoBoxHasRewarded = new Result(300002);// 通关奖励已经领取过
	static public Result WuchaoBoxCannotGet = new Result(300003);// 尚未通关不能领取这个奖励
	static public Result WuchaoCureOut = new Result(300004);// 金疮药已经用光了
	static public Result WuchaoCureDead = new Result(300005);// 武将已殒，来不及用药了
	static public Result WuchaoCureFull = new Result(300006);// 武将很健康，不需要用药
	static public Result WuchaoPoisonOver = new Result(300007);// 毒药已经用光了
	static public Result WuchaoPoisonDead = new Result(300008);// 这个敌人已经被消灭了
	static public Result WuchaoEventOver = new Result(300009);// 这个事件已结束
	static public Result WuchaoFormat = new Result(300010);// 请选择合适的上阵人数
	static public Result WuchaoEnemyDead = new Result(300011);// 这个敌人已经被消灭了
	static public Result WuchaoEnemyNormal = new Result(300012);// 需要将前面的武将都消灭才能挑战他
	static public Result WuchaoEnemyHeroDead = new Result(300013);// 你不能派死掉的武将出战
	static public Result WuchaoStageNotOver = new Result(300014);// 这个关卡尚未完成

	// 天下第一
	static public Result KowNoGroup = new Result(310001);// 活动尚未分组
	static public Result KowNoIn = new Result(310002);// 你并未参赛
	static public Result KowGroupNotStart = new Result(310003);// 小组赛未到开赛时间
	static public Result KowFinalNotStart = new Result(310004);// 决赛阶段尚未开始
	static public Result KowFansFinalOver = new Result(310005);// 这场比赛已经结束
	static public Result KowFansHasVoted = new Result(310006);// 你已经投过票了

	// 中原擂台
	static public Result PlainsArenaOppoOut = new Result(320001);// 对手不存在
	static public Result PlainsArenaRecordOut = new Result(320002);// 战斗记录已过期
	static public Result PlainsArenaNotOpen = new Result(320003);// 活动尚未开始
	static public Result PlainsArenaCantChanllenge = new Result(320004);// 不能挑战这个位置的玩家
	static public Result PlainsArenaFormatLess = new Result(320005);// 参战阵容不全，请至防守阵容进行布阵
	static public Result PlainsArenaNoPromoted = new Result(320006);// 这个段位没有晋级赛
	static public Result PlainsArenaCantPromoted = new Result(320007);// 还不能晋级
	static public Result PlainsArenaBoxCantGet = new Result(320008);// 宝箱领取条件不足
	static public Result PlainsArenaBoxHasGet = new Result(320009);// 这个宝箱已经领过了
	static public Result PlainsArenaLevelRewardGet = new Result(320010);// 这个奖励已经领过了
	static public Result PlainsArenaNoFormatTimes = new Result(320011);// 阵容调整次数用完
	static public Result PlainsArenaFormatNumOverstep = new Result(320012);// 阵容中英雄人数超过限制
	static public Result PlainsArenaFormatException = new Result(320013);// 阵容设置异常
	static public Result PlainsArenaNotInitFormat = new Result(320014);// 还未调整过阵容


	// 火烧赤壁
	static public Result ChibiNoTime = new Result(330001);// 没有挑战次数了
	static public Result ChibiTimeWrong = new Result(330002);// 挑战时间不符
	static public Result ChibiCantChallenge = new Result(330003);// 关卡尚不能挑战
	static public Result ChibiBuyTimeOut = new Result(330004);// 没有购买次数了

	//玉玺
	static public Result JadeSealNeedUnlock = new Result(340001);// 玉玺需要解锁
	static public Result JadeSealHadUnlock = new Result(340002);// 玉玺已经解锁
	static public Result JadeSealLevelUpper = new Result(340003);// 玉玺等级已满
	static public Result JadeSealStageUpper = new Result(340004);// 玉玺阶已满
	static public Result JadeSealNeedLevelUp = new Result(340005);// 玉玺升阶等级不够

	// 保卫洛阳
	static public Result GuardCantOperate = new Result(350001);// 不能进行这个操作

	//兵符槽
	static public Result PickedTroopsNeedUnlock = new Result(360001);// 兵符槽需要解锁
	static public Result PickedTroopsHadUnlock = new Result(360002);// 兵符槽已经解锁
	static public Result PickedTroopsLevelUpper = new Result(360003);// 兵符槽等级已满
	static public Result PickedTroopsSlotEntrynumMax = new Result(360004);// 兵符保护的词条达到上限
	static public Result PickedTroopsSlotNeedSameSlot = new Result(360005);// 兵符合成需要同一阵营或同一等级
	static public Result PickedTroopsSlotIsUsing = new Result(360006);// 兵符正在使用

	//心仪武将活动
	static public Result ActBelovedHeroNeedSelectMustSelectHero = new Result(370001);// 保存队伍必须要有必选的英雄
	static public Result ActBelovedHeroNoRewardCanGet = new Result(370002);// 无奖励可领

    //共鸣系统
    static public Result ResonateConfirmCantRepeat = new Result(380001);// 共鸣武将的code不能重复
    static public Result ResonateConfirmAbsenceAboveHero = new Result(380002);// 不满足6个则不能共鸣
    static public Result ResonateConfirmTimeCD = new Result(380003);// 共鸣正在cd中
    static public Result ResonateConfirmNeedlevel = new Result(380004);// 主公等级不满足
    static public Result ResonateConfirmNotExist = new Result(380005);// 共鸣武将不存在
    static public Result ResonateConfirmCantResonateHero = new Result(380006);// 不能共鸣场已在共鸣位上的武将
    static public Result ResonateConfirmAboveHeroCantRepeat = new Result(380007);// 场上武将的code不能重复
    static public Result ResonateConfirmAboveHeroCantSelectResonateHero = new Result(380008);// 场上武将的code不能选择共鸣的武将
    static public Result ResonateConfirmIsResonateHero = new Result(380009);// 共鸣的武将不能操作

	//阵营塔
	static public Result CampTowerSixGeneralsRequired = new Result(390001);//必须上阵6名武将
	static public Result CampTowerDoesNotMeetTheRequirements = new Result(390002);//阵容不满足要求
	static public Result CampTowerNotPlayFloor = new Result(390003);//不能打该层

	//聊天
	static public Result ChatCantReportRepeatedly = new Result(390004);//不能重复举报


	//斩关夺隘(暂时弃用)
	static public Result CaptureStrategicPointsFormatLess = new Result(400001); //参战阵容不全
	static public Result CaptureStrategicPointsCantRepeatedReward = new Result(400002); //宝箱不能重复领取
	static public Result CaptureStrategicPointsCantReward = new Result(400003); //没有达到通关数要求，领取不了
	static public Result CaptureStrategicPointsStarLevelMax = new Result(400004); //养成线等级已达最大
	static public Result CaptureStrategicPointsStarNotEnough = new Result(400005); //星星数不足
	//斩关夺隘(重做)
	static public Result PassBarrierStarLevelMax = new Result(400010); //星星数不足
    static public Result PassBarrierAlreadyReward = new Result(400011); //已经领取过了
	static public Result PassBarrierCantReward = new Result(400012); //还不能领取
	static public Result PassBarrierChallengePurchaseLimitCantBuy = new Result(400013); //购买次数达到上限
	static public Result PassBarrierChallengeRefreshReachLimit = new Result(400014); //刷新次数已达上线不能刷新
	static public Result PassBarrierDegreeCantReduce = new Result(400015); //难度已达下限
	static public Result PassBarrierDegreeCantIncrease = new Result(400016); //难度已达上限
	static public Result PassBarrierCantRefresh = new Result(400017); //cd在冷却，需要花钱购买才能刷新怪物
	static public Result PassBarrierCantChallenge = new Result(400018); //挑战次数不足
	static public Result PassBarrierNeedSaveFormat = new Result(400019); //需要保存队伍才能挑战




	//心愿瓶
	static public Result BottleWishRegisterCantRepeatedReward = new Result(410001); //心愿瓶奖励不能重复领取
	static public Result BottleWishCantReward = new Result(410002); //心愿值没达到不能领取奖励
	static public Result BottleWishAccumulateCantReward = new Result(410003); //累充没达到，不能领取


	//三线互推
	static public Result ThreeLineMutualPushMonsterLevelCantUp = new Result(420001); //三线互推消耗不足


	//在线匹配玩家PVP
	static public Result MatchPlayerOnlineNotOpen = new Result(430001); //还没开启
	static public Result MatchPlayerOnlineFormatNeedSixHero = new Result(430002); //布阵保存必须满6个




	private int number;
	private int[] params;

	public Result(int number) {
		this.number = number;
	}

	public Result(Result result, int... params) {
		this.number = result.getNumber();
		this.params = params;
	}

	public int getNumber() {
		return number;
	}

	public yxy.game.pm2.message.ResultEnum.Result packResult() {
		yxy.game.pm2.message.ResultEnum.Result.Builder builder = yxy.game.pm2.message.ResultEnum.Result.newBuilder();
		builder.setNumber(number);
		if (params != null && params.length > 0) {
			for (int i = 0; i < params.length; i++) {
				builder.addParams(params[i]);
			}
		}
		return builder.build();
	}

}
